$(function(){
	var detail = JSON.parse(localStorage.getItem("$detail"));
	var user = JSON.parse(localStorage.getItem("$loginUser"))
	$("#userName").text(user.account);
	$("#detailName").text(detail.title);
	$("#detailImg").attr("src",detail.images[0]);
	$("#detailPrice").text(detail.price);
	
	
	$("#pay").click(function(){
		window.location.href = "new-mine.html";
	})
});
